package org.qdao.model;

import java.sql.Date;

import org.qdao.annotation.Column;
import org.qdao.annotation.Column.DBColumnType;
import org.qdao.annotation.PrimaryKey;
import org.qdao.annotation.Table;

@Table(name = "T_LIFE", description = "生活账目表")
public class Master {

	@Column(name = "L_ID", description = "编号", decimal = 0, type = DBColumnType.INTEGER, nullable = false)
	@PrimaryKey()
	public int id;

	@Column(name = "L_OUTLAY", description = "消费金额", decimal = 3, length = 11, type = DBColumnType.FLOAT, nullable = false)
	public float outlay;

	@Column(name = "L_GOODNAME", description = "商品名称", length = 30, type = DBColumnType.VARCHAR, nullable = false)
	public String goodName;

	@Column(name = "L_GOODTIME", description = "消费时间", type = DBColumnType.DATE, nullable = false)
	public Date goodTime;

	@Column(name = "L_USERNAME", description = "消费人物", length = 10, type = DBColumnType.VARCHAR, nullable = false)
	public String username;

}
